<?php


class wxapi_ctl_admin_laws extends desktop_controller
{
    public function apple()
    {
        if($_POST) {
            $laws = $_POST['wxapps']['laws'];
            !$laws['effectivetime'] && $laws['effectivetime'] = date('Y-m-d');
            $this->begin();
            app::get('wxapi')->setConf('wxapps.laws',$laws);
            $this->end(true,'保存成功');
        }
        $laws = app::get('wxapi')->getConf('wxapps.laws');
        $this->pagedata['wxapps']['laws'] =$laws;
        $this->page('admin/laws.html');
    }
}